import React, { FC, useContext } from "react";
import { ChangeTheme } from "./index";
const Contextgrandson: FC = () => {
  const theme = useContext(ChangeTheme);
  return (
    <>
      <div>
        我是孙子组件啊 ----- <button style={{ color: theme.forecolor, background: theme.background }}>主题变更效果</button>
      </div>
    </>
  );
};

export default Contextgrandson;
